Setting up Make Support

Generating search paths

In the Project Tree of the Project Editor, make sure that all projects are checkmarked. Choose Project > Attributes of Checkmarked Projects... to open the Project Attributes dialog. In this dialog, you can look at and modify all the attributes of selected projects.
Select the Build Options - Directives node.
Select toggles left and right to the Generate... button.
You can use checkmarks to modify attributes of all projects simultaneously. With the checkmarks off, you can set attributes of the project which is highlighted in the Project List window on the right.
Press the Generate... button to generate the include paths for all projects. The project's include path information will then be displayed in the Include Directive(s) field (Ignore the warnings in th Log Window).
Press Set for All to apply changes to all projects (Again ignore the warnings in the Log window).
Press Ok to save the changes to the project attributes.
Two dialog boxes appear. Press No in both.

Setting up the main target for diners.shared

In the Project Tree of the Project Editor, double-click

diners.shared to open its Project Attributes dialog.
In the Executable field of the Build Options-Project Targets node, enter a name for the project's executable. Using GNAT, this name must match the name of the source file which contains the project's main target ( diners ).
Please note that include path has already been generated.
Switch to the Build Options-Build Structure node.
Press the Generate... button next to the Recursive Make Dirs field at the bottom of the view.
The executable is built using recursive Make rules. By pressing the Generate... button, SNiFF+ generates the order of subprojects in which Make is executed.

.

| Note
| When using languages other than Ada, building an executable is usually done by specifying all the object files needed to build it. For this purpose, a project can have the Passed to Superproject attribute, which specifies which object files are to be included in the link. In the GNAT Ada model, building the main target is performed by gnatmake , based on generated .ali files. Usage of .ali files obsoletes specifying object files to be passed to superproject. For all Ada projects, you can leave this field empty.

- Press Ok to save the changes to the project attributes.
- A dialog-asking to update the makefiles appears-press Yes.
- In the Launch Pad, save the changes made to the Project Description Files of
diners.shared and its subprojects.